﻿
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;

namespace WinnerCMS.Data.Mapping
{
    public partial class SoftMap
        : System.Data.Entity.ModelConfiguration.EntityTypeConfiguration<WinnerCMS.Model.Soft>
    {
        public SoftMap()
        {
            Property(t => t.SoftVersion)
                .IsUnicode(false)
                .HasMaxLength(50)
                .IsRequired();
            Property(t => t.SoftSize)
                .IsUnicode(false)
                .HasMaxLength(50)
                .IsRequired();
            Property(t => t.Content)
                .IsMaxLength()
                .IsRequired();
            Property(t => t.DemoUrl)
                
                .HasMaxLength(300)
                .IsRequired();
            Property(t => t.Author)
                
                .HasMaxLength(50)
                .IsRequired();
            Property(t => t.Email)
                
                .HasMaxLength(100)
                .IsRequired();
            Property(t => t.Homepage)
                
                .HasMaxLength(300)
                .IsRequired();
            Property(t => t.RunAtSystem)
                
                .HasMaxLength(100)
                .IsRequired();
            Property(t => t.SoftType)
                
                .HasMaxLength(50)
                .IsRequired();
            Property(t => t.SoftLanguage)
                
                .HasMaxLength(50)
                .IsRequired();
            Property(t => t.CopyrightType)
                
                .HasMaxLength(50)
                .IsRequired();
            Property(t => t.DecompressPassword)
                
                .HasMaxLength(100)
                .IsRequired();
            Property(t => t.BlackGuard)
                
                .HasMaxLength(50)
                .IsRequired();

            // Relationships
            

            //InitializeMapping();
        }
    }
}

